import request from '../../utils/request'

const api_name = "order"

/**分页查询订单列表 */
export function getOrderListByCondition(queryCondition) {
    return request({
        url: `/${api_name}/querypage`,
        method: 'post',
        data: queryCondition
    })
}

/**查看订单详情 */
export function getOrderById(id) {
    return request({
        url: `/${api_name}/orderdetail/${id}`,
        method: 'GET'
    })
}

/**修改订单 */
export function editOrder(orderinfo) {
    return request({
        url: `/${api_name}/edit`,
        method: 'PUT',
        data: orderinfo
    })
}